﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="KMA.MVC3TestWeb.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="Scripts/timeleft.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p>
            Page loaded:
            <%= DateTime.Now.ToString() %>
        </p>
        <p>
            Timeout:
            <%= Session.Timeout %> Minute(s)
        </p>
        <p>
            Normally, this session would timeout in <span id='timeleft'>
                <%=Session.Timeout * 60 %></span> seconds.
        </p>
    </div>
    </form>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        setInterval(function () {
            $.post('<%= Page.ResolveUrl("~/Content/KeepMeAlive.axd") %>');
        }, 15000);
    });
</script>
</html>
